{include file="public/header" /}



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_video}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>

        <table class="ds-default-table">
            <tbody>
            {notempty name="video_list"}
            <tr>
                <td colspan="20">
                    <ul class="thumblists">
                        {foreach name="video_list" item="v"}
                        <li class="picture" id="ds_row_{$v.goodsvideo_id}" style="width:254px !important;height: 274px;">
                            <div>
                                <video title='{$v.goodsvideo_add_time|date="Y-m-d"}<br>{$v.store_name}' controls="" height="240" width="240" src="{:goods_video($v.goodsvideo_name)}" class="tip" />
                            </div>
                            <p>
                                <span><input class="checkitem" type="checkbox" name="delbox[]" value="{$v.goodsvideo_id}"></span><span><a href="javascript:dsLayerConfirm('{:url('Goodsvideo/del_video',['goodsvideo_id'=>$v.goodsvideo_id])}','{$Think.lang.ds_ensure_del}',{$v.goodsvideo_id})">{$Think.lang.ds_del}</a></span>
                            </p>
                        </li>
                        {/foreach}
                    </ul>
                </td>
            </tr>
            {else /}
            <tr class="no_data">
                <td colspan="15">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
            <tr class="tfoot">
                <td class="w48"><input id="checkallBottom" class="checkall" type="checkbox"/></td>
                <td colspan="16">
                    <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
                    <a class="btn btn-small" href="javascript:void(0);" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
                </td>
            </tr>
            </tfoot>
        </table>
         {$show_page|raw}

</div>
<script>
    jQuery.browser={};(function(){jQuery.browser.msie=false; jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)./)){ jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})();
</script>
<script src="{$Think.PLUGINS_SITE_ROOT}/jquery.poshytip.min.js"></script>
<script>
    $(function () {
        $('.tip').poshytip({
            className: 'tip-yellowsimple',
            alignTo: 'target',
            alignX: 'center',
            alignY: 'bottom',
            offsetX: 0,
            offsetY: 5,
            allowTipHover: false
        });
    });
    function submit_delete(ids_str){
        _uri = ADMINSITEURL+"/Goodsvideo/del_video.html?goodsvideo_id=" + ids_str;
        dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
    }
</script>